#ifndef POLYGONDIALOG_H
#define POLYGONDIALOG_H

#include <QDialog>
#include <QInputDialog>

#include "db/dbfabric.h"

namespace Ui {
    class PolygonDialog;
}

class PolygonDialog : public QDialog
{
    Q_OBJECT
private:
    QString _idPolygon;

public:
    explicit PolygonDialog(QWidget *parent = 0);
    ~PolygonDialog();

    void loadPolygons();
    QString getPolygon();

    Ui::PolygonDialog *ui;

public slots:
    void onSelectedItemChanged(int index);
};

#endif // POLYGONDIALOG_H
